package com.rjh.spring.test;

import com.rjh.spring.ioc.Person;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

@SpringJUnitConfig
@ContextConfiguration("classpath:springTest.xml")
public class SpringTestJUnit5 {

    @Autowired
    private Person person;


    @Test
    public void test1() throws Exception {
        person.sayHello();
    }
}
